<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>HiAll Administrator's Control Panel</title>
        <link rel="stylesheet" href="css/common.css" type="text/css" media="all" />
    </head>
    <body>
        <div id="append"></div>
        <div class="container">
                <h2 class="admintitle">企业表单定制</h2>
                <div id="srchuserdiv" class="tabcontentcur" style="width:90%;position:relative">
		     <form method="POST" action="index.php?c=FormBook&a=Save"> 
                    <table  class="datalist fixwidth">
						<tbody><tr>
							<th nowrap="nowrap"></th>
							<th nowrap="nowrap">企业表单定制</th>
						</tr>
						<tr>
                            <?php 
				$index = 0;
			    	foreach($book as $key=>$name){
						$index++ ;
						$check_state = '';
						if(array_key_exists($key,$bookData)){
							$ischeck = $bookData[$key];
							if($ischeck == 1){
								$check_state = 'checked';
							}
						}
                             ?>
								<td width="20"><input type="checkbox" name="<?=$key?>" value="1" <?=$check_state?> /></td>
								<td width="300"><?=$name?></td>
							<?php
							if($index % 4 == 0){
								echo "</tr><tr>";
							}
				}
							?>
						</tr>
						<tr><td colspan="2"><input type="submit" value="保存" /></td></tr>
					</tbody></table>
			</form>
            </div>
        </div>


    </body>
</html>
